package com.lzy.concertticket.dao.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lzy.concertticket.model.entity.ArtistEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzy.concertticket.model.req.ArtistReq;
import com.lzy.concertticket.model.vo.ArtistVo;
import org.apache.ibatis.annotations.Param;

/**
* @author 30793
* @description 针对表【tb_artist(艺人信息表)】的数据库操作Mapper
* @createDate 2025-08-16 23:21:21
* @Entity com.lzy.concertticket.model.entity.ArtistEntity
*/
public interface ArtistMapper extends BaseMapper<ArtistEntity> {

    ArtistEntity getByName(String name);

    ArtistVo getByIdOrName(@Param("id") Long id, @Param("name") String name);

    Page<ArtistVo> getPage(Page<ArtistVo> page, @Param("a") ArtistReq artistReq);
}




